home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
irc_i_dodatki
/
kuang
/
kuangeleven28.lha
/
Rexx
/
Connected.amirx
< prev
next >
Wrap
Text File
|
1997-04-01
|
2KB
|
84 lines
/* Kuang Eleven v2.8 Init for AmIRC 1.22+ */
scrpath='T:' /* Path of events handlers */
/* Do not mess with anything below */
x=getclip('st_init')
if x==1|x=2 then exit
setclip('st_init',2)
options results
cecho('Initializing')
if ~show('L','rexxsupport.library') then if ~addlib('rexxsupport.library',0,-30,0) then do
cecho('Fatal Error: Cannot load rexxsupport.library')
exit
end
if ~show('L','rexxdossupport.library') then if ~addlib('rexxdossupport.library',0,-30,2) then do
cecho('Fatal Error: Cannot load rexxdossupport.library')
exit
end
putscript('kuang11.amirx')
conf='Kuang11/Config'
if open(1,conf,'R') then do
do until eof(1)
line=readln(1)
parse var line c a
if a~='' then setclip('sc_'||lower(strip(c)),strip(a))
end
close(1)
ou='SAY /HILITE'
x=getclip('sc_comprefix')
if x~='' then ou '"'||x||'"'
l=getclip('sc_swords')
if getclip('sc_shit')='ON'&l~='' then do i=1 to words(l);;ou '"'upper(word(l,i))'"';end
if getclip('sc_asound')='ON' then do
"GETMYNICK"
x=result
ou '"!'||x||'"'
setclip('st_asoundnick',x)
end
if getclip('sc_tia')='ON' then do
"GETMYNICK"
"USERHOST" result
host=result
open(1,'env:TIADCC','W')
rv=writeln(1,substr(host,pos('@',host)+1) 9050 9051 9052 9053)
close(1)
end
putlst=getclip('sc_copyscripts')
if putlst~='' then do until putlst=''
parse var putlst scr putlst
putscript(scr)
end
end
else cecho('Warning : Cannot load Configuration' conf)
flist=''
if ~open(1,'Kuang11/friends','R') then flist='-'
else do
do until eof(1)
x=readln(1)
flist=flist strip(word(x,1),'B','+') word(x,2) word(x,3)
end
close(1)
end
setclip('st_list',flist)
Setclip('st_version',version())
Setclip('st_init',1)
cecho(version() 'Initialized')
'SAY /RX kuang11cmd SHOW'
exit
putscript:
evn=scrpath||arg(1)
if exists(evn) then address command 'delete' evn 'force quiet'
address command 'copy rexx/'arg(1) evn 'quiet'
address command 'protect' evn '-d'
if ~exists(evn) then do
cecho('Failed! Missing' evn)
setclip('st_init')
exit
end
return 0
version:;return x2c(2)'Kuang Eleven'x2c(2) 'v2.8'
lower:;return translate(arg(1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')
cecho:;"ECHO P="d2c(27)"b«KInit»" arg(1);return 0